import jinja2


def render_template(template_name, data):
    env = jinja2.Environment(loader=jinja2.FileSystemLoader('templates'))
    template = env.get_template(template_name)
    return template.render(data)
